public class Gene{
  
   float geneX1; 
   float geneY1; 
   float geneX2; 
   float geneY2; 
   int startNucleotide; 
   int endNucleotide; 
   boolean isPosStrand; 
   String geneName; 
   String synonym; 
   String product;
  
 // CDS[] codingSeqs; //array of coding sequences within gene
  
  Gene( float geneX1, float geneY1, float geneX2, float geneY2, int startNucleotide, int endNucleotide, boolean isPosStrand, String geneName, String synonym, String product )
  {
    this.geneX1 = geneX1;
    this.geneY1 = geneY1;
    this.geneX2 = geneX2;
    this.geneY2 = geneY2; 
    this.startNucleotide = startNucleotide;
    this.endNucleotide = endNucleotide;
    this.isPosStrand = isPosStrand;
    this.geneName = geneName;
    this.synonym = synonym; 
    this.product = product;
    
    //println( "\t" + geneX1 + " " + geneY1 + " " +  geneX2 + " " + geneY2 + " " + startNucleotide + " " + endNucleotide  + " " + isPosStrand + " " + geneName + " " + synonym + " " + product );
  }
  
  void draw()
  {
    rectMode(CORNERS);
    fill( 0xFF5386D );
    if( isPosStrand )
      rect(geneX1, geneY1-5, geneX2, geneY2 );
    else
      rect(geneX1, geneY1, geneX2, geneY2+5 );
  }
}
